<extend name="Public/base"/>

<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>


<block name="body">
<style>
.error{
	color:red;
}
</style>
	<div class="main-title">
		<h2>
			{$info['id']?'编辑':'新增'}商家
			
		</h2>
	</div>
	<form id="commentForm" action="{:U(shopedit)}" method="post" class="form-horizontal">
		<input type="hidden" name="pid" value="{$pid}">
		<div class="form-item">
			<label class="item-label">商家名称<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="shopname" value="{$info.shopname|default=''}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">商家主要联系人<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="shoplinkman" value="{$info.shoplinkman|default=''}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">商家主要联系电话<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="shoptel" value="{$info.shoptel|default=''}">
			</div>
		</div>
		      
		<div class="form-item">
			<label class="item-label">排序<span class="check-tips">（显示的顺序）</span></label>
			<div class="controls">
				<input type="text" class="text input-small" name="sort" value="{$info.sort|default='0'}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">备注</label>
			<div class="controls">
				<input type="text" class="text input-large" name="shopremarks" value="{$info.shopremarks|default=''}">
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" name="id" value="{$info.id|default=''}">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">

$.validator.setDefaults({
    submitHandler: function() {
      alert("提交事件!");
    }
});
$().ready(function() {
    $("#commentForm").validate();
});

	//导航高亮
	highlight_subnav('{:U('index')}');
</script>
</block>
